package com.wfm.systemnotice;

import com.wfm.systemnotice.entity.User;

import java.util.List;

public class SqlUtils {
    public static boolean shouldUpdateAge(List<User> userList) {
        return userList.stream().allMatch(user -> user.getAge() != null);
    }

    public static boolean shouldUpdateEmail(List<User> userList) {
        return userList.stream().anyMatch(user -> user.getEmail() != null && !user.getEmail().isEmpty());
    }
}